package com.mis.clothespos.in.service.impl;

import com.mis.clothespos.clothes.mapper.clothesMapper;
import com.mis.clothespos.in.domain.In;
import com.mis.clothespos.in.mapper.InMapper;
import com.mis.clothespos.in.service.inService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

@Service
@Primary
public class inServiceImpl implements inService {


    @Autowired
    InMapper inmapper;
    @Autowired
    clothesMapper clothesmapper;
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return inmapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(In record) {
        return inmapper.insert(record);
    }



    @Override
    public int checkIfOld(In record) {
        return inmapper.checkIfOld(record);
    }


    @Override
    public In selectByPrimaryKey(Integer id) {
        System.out.println(id);
        return inmapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(In record) {
        return inmapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(In record) {
        return inmapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateNumber(In record) {
        return inmapper.updateNumber(record);
    }

    @Override
    public int selectByDetail(In record) {
        return inmapper.selectByDetail(record);
    }
}
